import http from "../http";
// import { useUserStore } from '@/store'
// const userStore = useUserStore()


function createFriends(params: any = {}) {
    return http.myRequest({
        url: '/chat/chatFriends/create',
        method: 'post',
        data: params,
    })
}

function friendsList(params: any = {}) {
    return http.myRequest({
        url: '/chat/chatFriends/friendsList',
        method: 'post',
        data: params,
    })
}



function queryChatList(params: any = {}) {
    return http.myRequest({
        url: '/chat/chat/queryChatList',
        method: 'post',
        data: params,
    })
}

function send(params: any = {}) {
    return http.myRequest({
        url: '/chat/chat/send',
        method: 'post',
        data: params,
    })
}

export default {
    createFriends,
    queryChatList,
    send,
    friendsList
}


